public class Interface01 {
    public static void main(String[] args) {
        B b = new B();
        func(b);
    }

    public static void func(A a) {
        a.eat();
    }
}


